package com.jinzhi.jinzhidata.dataobject;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author vansl
 * @description 轮播图
 * @date 2020-01-19 12:58
 **/
@Data
@EntityListeners(AuditingEntityListener.class)
@Entity
public class CarouselFigure {

    @Id
    private String carouselFigureId;

    private String carouselFigureImage;

    private String articleId;

    @CreatedDate
    private Date createTime;

    @LastModifiedDate
    private Date updateTime;
}
